import request from './Http'
// 获取歌单详情
export function getsongItem(data){
    return request({
        url:"/playlist/detail?id="+data,
        method:"get"
    })
}
// 获取歌单所有歌曲
// +'&limit=10&offset=0'
export function getsongListAllTheSongs(id){
    return request({
        url:"/playlist/track/all?id="+id,
        method:"get",
        // params
    })
}
//获取精品歌单
export function getqualityGoodsPlaylists(){
    return request({
        url:`/top/playlist/highquality`,
        method:"get",
        // params
    })
}
export function gethotPlaylists(type){
    return request({
        url:`/top/playlist?limit=20&order=hot&cat=${type}`,
        method:"get",
        // params
    })
}
// 收藏歌单
export function getsongListForCollection(type,id){
    return request({
        url:`/playlist/subscribe?t=${type}&id=${id}`,
        method:"get",
        // params
    })
}


